<!doctype html><html lang=en dir=auto>
<head><meta charset=utf-8>
<meta http-equiv=x-ua-compatible content="IE=edge">
<meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name=robots content="index, follow">
<title>CocoaPods 私有库验证 --- 参数 | wenbin</title>
<meta name=keywords content="iOS开发杂货,CocoaPods">
<meta name=description content="pod lib lint 对spec文件做本地校验
pod spec lint 对spec文件做远程校验
--verbose 显示详细信息
--use-libraries 如果依赖了静态库使用这个可以校验通过
--allow-warnings 忽略警告
--sources 如果是私有库包含私有库的情况，在验证时加上这个属性：
--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少">
<meta name=author content>
<link rel=canonical href=https://imwenbin.com/blog/cocoapods-%E7%A7%81%E6%9C%89%E5%BA%93%E9%AA%8C%E8%AF%81-%E5%8F%82%E6%95%B0/>
<meta name=google-site-verification content="XYZabc">
<meta name=yandex-verification content="XYZabc">
<meta name=msvalidate.01 content="XYZabc">
<link rel=icon href=https://imwenbin.com/favicon.ico>
<link rel=icon type=image/png sizes=16x16 href=https://imwenbin.com/favicon-16x16.png>
<link rel=icon type=image/png sizes=32x32 href=https://imwenbin.com/favicon-32x32.png>
<link rel=icon type=image/png sizes=400x400 href=https://imwenbin.com/favicon-400x400.png>
<link rel=icon type=image/png sizes=512x512 href=https://imwenbin.com/favicon-512x512.png>
<link rel=apple-touch-icon href=https://imwenbin.com/apple-touch-icon.png>
<link rel=apple-touch-icon sizes=57x57 href=https://imwenbin.com/apple-touch-icon-57x57.png>
<link rel=apple-touch-icon sizes=60x60 href=https://imwenbin.com/apple-touch-icon-60x60.png>
<link rel=apple-touch-icon sizes=72x72 href=https://imwenbin.com/apple-touch-icon-72x72.png>
<link rel=apple-touch-icon sizes=76x76 href=https://imwenbin.com/apple-touch-icon-76x76.png>
<link rel=apple-touch-icon sizes=114x114 href=https://imwenbin.com/apple-touch-icon-114x114.png>
<link rel=apple-touch-icon sizes=120x120 href=https://imwenbin.com/apple-touch-icon-120x120.png>
<link rel=apple-touch-icon sizes=144x144 href=https://imwenbin.com/apple-touch-icon-144x144.png>
<link rel=apple-touch-icon sizes=152x152 href=https://imwenbin.com/apple-touch-icon-152x152.png>
<link rel=apple-touch-icon sizes=180x180 href=https://imwenbin.com/apple-touch-icon-180x180.png>
<link rel=mask-icon href=https://imwenbin.com/safari-pinned-tab.svg>
<meta name=theme-color content="#2e2e33">
<meta name=msapplication-TileColor content="#2e2e33">
<link crossorigin=anonymous href=/assets/css/stylesheet.min.css rel="preload stylesheet" as=style>
<script defer crossorigin=anonymous src=/assets/js/highlight.min.js onload=hljs.initHighlightingOnLoad()></script>
<meta name=generator content="Hugo 0.89.3">
<noscript>
<style>#theme-toggle,.top-link{display:none}</style>
<style>@media(prefers-color-scheme:dark){:root{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--hljs-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--theme)}.list:not(.dark)::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-thumb{border-color:var(--theme)}}</style>
</noscript><meta property="og:title" content="CocoaPods 私有库验证 --- 参数">
<meta property="og:description" content="pod lib lint 对spec文件做本地校验
pod spec lint 对spec文件做远程校验
--verbose 显示详细信息
--use-libraries 如果依赖了静态库使用这个可以校验通过
--allow-warnings 忽略警告
--sources 如果是私有库包含私有库的情况，在验证时加上这个属性：
--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少">
<meta property="og:type" content="article">
<meta property="og:url" content="https://imwenbin.com/blog/cocoapods-%E7%A7%81%E6%9C%89%E5%BA%93%E9%AA%8C%E8%AF%81-%E5%8F%82%E6%95%B0/"><meta property="article:section" content="Blog">
<meta property="article:published_time" content="2021-11-18T09:34:36+08:00">
<meta property="article:modified_time" content="2021-11-18T09:34:36+08:00"><meta property="og:site_name" content="wenbin">
<meta name=twitter:card content="summary">
<meta name=twitter:title content="CocoaPods 私有库验证 --- 参数">
<meta name=twitter:description content="pod lib lint 对spec文件做本地校验
pod spec lint 对spec文件做远程校验
--verbose 显示详细信息
--use-libraries 如果依赖了静态库使用这个可以校验通过
--allow-warnings 忽略警告
--sources 如果是私有库包含私有库的情况，在验证时加上这个属性：
--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少">
<script type=application/ld+json>{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Blogs","item":"https://imwenbin.com/blog/"},{"@type":"ListItem","position":2,"name":"CocoaPods 私有库验证 --- 参数","item":"https://imwenbin.com/blog/cocoapods-%E7%A7%81%E6%9C%89%E5%BA%93%E9%AA%8C%E8%AF%81-%E5%8F%82%E6%95%B0/"}]}</script>
<script type=application/ld+json>{"@context":"https://schema.org","@type":"BlogPosting","headline":"CocoaPods 私有库验证 --- 参数","name":"CocoaPods 私有库验证 --- 参数","description":"pod lib lint 对spec文件做本地校验\npod spec lint 对spec文件做远程校验\n--verbose 显示详细信息\n--use-libraries 如果依赖了静态库使用这个可以校验通过\n--allow-warnings 忽略警告\n--sources 如果是私有库包含私有库的情况，在验证时加上这个属性：\n--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少","keywords":["iOS开发杂货","CocoaPods"],"articleBody":"pod lib lint 对spec文件做本地校验\npod spec lint 对spec文件做远程校验\n--verbose 显示详细信息\n--use-libraries 如果依赖了静态库使用这个可以校验通过\n--allow-warnings 忽略警告\n--sources 如果是私有库包含私有库的情况，在验证时加上这个属性：\n--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少\n","wordCount":"18","inLanguage":"en","datePublished":"2021-11-18T09:34:36+08:00","dateModified":"2021-11-18T09:34:36+08:00","mainEntityOfPage":{"@type":"WebPage","@id":"https://imwenbin.com/blog/cocoapods-%E7%A7%81%E6%9C%89%E5%BA%93%E9%AA%8C%E8%AF%81-%E5%8F%82%E6%95%B0/"},"publisher":{"@type":"Organization","name":"wenbin","logo":{"@type":"ImageObject","url":"https://imwenbin.com/favicon.ico"}}}</script>
</head>
<body id=top>
<script>localStorage.getItem("pref-theme")==="dark"?document.body.classList.add('dark'):localStorage.getItem("pref-theme")==="light"?document.body.classList.remove('dark'):window.matchMedia('(prefers-color-scheme: dark)').matches&&document.body.classList.add('dark')</script>
<header class=header>
<nav class=nav>
<div class=logo>
<a href=https://imwenbin.com/ accesskey=h title="wenbin (Alt + H)">wenbin</a>
<span class=logo-switches>
<button id=theme-toggle accesskey=t title="(Alt + T)"><svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg><svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
</span>
</div>
<ul id=menu>
<li>
<a href=https://imwenbin.com/blog/ title=Blog>
<span>Blog</span>
</a>
</li>
<li>
<a href=https://imwenbin.com/archives title=Archive>
<span>Archive</span>
</a>
</li>
<li>
<a href=https://imwenbin.com/tags title=Tags>
<span>Tags</span>
</a>
</li>
</ul>
</nav>
</header>
<main class=main>
<article class=post-single>
<header class=post-header>
<div class=breadcrumbs><a href=https://imwenbin.com/>Home</a>&nbsp;»&nbsp;<a href=https://imwenbin.com/blog/>Blogs</a></div>
<h1 class=post-title>
CocoaPods 私有库验证 --- 参数
</h1>
<div class=post-meta><span title="2021-11-18 09:34:36 +0800 CST">⌚️ 2021-11-18</span>
</div>
</header>
<div class=post-content><p><code>pod lib lint</code> 对spec文件做本地校验</p>
<p><code>pod spec lint</code> 对spec文件做远程校验</p>
<p><code>--verbose</code> 显示详细信息</p>
<p><code>--use-libraries</code> 如果依赖了静态库使用这个可以校验通过</p>
<p><code>--allow-warnings</code> 忽略警告</p>
<p><code>--sources</code> 如果是私有库包含私有库的情况，在验证时加上这个属性：</p>
<p><code>--sources=https://xxxxx.git,https://github.com/CocoaPods/Specs.git</code> 一个是从自己的私有仓库检索，一个是从Cocoapods的repo检索，按需添加，有多少个添加多少</p>
</div>
<footer class=post-footer>
<ul class=post-tags>
<li><a href=https://imwenbin.com/tags/ios%E5%BC%80%E5%8F%91%E6%9D%82%E8%B4%A7/>iOS开发杂货</a></li>
<li><a href=https://imwenbin.com/tags/cocoapods/>CocoaPods</a></li>
</ul>
<nav class=paginav>
<a class=prev href=https://imwenbin.com/blog/xcode%E5%8D%95%E5%85%83%E6%B5%8B%E8%AF%95%E6%8A%A5%E9%94%99-failed-to-load-test-bundle-from-file/>
<span class=title>« Prev Page</span>
<br>
<span>Xcode单元测试报错 Failed to load test bundle from file</span>
</a>
<a class=next href=https://imwenbin.com/blog/pod-install-%E5%92%8C-rvm-install-ruby-xxxx%E6%8A%A5%E9%94%99%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95/>
<span class=title>Next Page »</span>
<br>
<span>pod install 和 rvm install ruby-xxxx报错解决办法</span>
</a>
</nav>
</footer>
</article>
</main>
<footer class=footer>
<span>&copy; 2022 <a href=https://imwenbin.com/>wenbin</a>.</span>
<span>
保留部分权利。
</span>
<span> <a href=https://beian.miit.gov.cn>
津ICP备2021008823号 </a></span>
</footer>
<a href=#top aria-label="go to top" title="Go to Top (Alt + G)" class=top-link id=top-link accesskey=g><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentcolor"><path d="M12 6H0l6-6z"/></svg>
</a>
<script>let menu=document.getElementById('menu');menu&&(menu.scrollLeft=localStorage.getItem("menu-scroll-position"),menu.onscroll=function(){localStorage.setItem("menu-scroll-position",menu.scrollLeft)}),document.querySelectorAll('a[href^="#"]').forEach(a=>{a.addEventListener("click",function(b){b.preventDefault();var a=this.getAttribute("href").substr(1);window.matchMedia('(prefers-reduced-motion: reduce)').matches?document.querySelector(`[id='${decodeURIComponent(a)}']`).scrollIntoView():document.querySelector(`[id='${decodeURIComponent(a)}']`).scrollIntoView({behavior:"smooth"}),a==="top"?history.replaceState(null,null," "):history.pushState(null,null,`#${a}`)})})</script>
<script>var mybutton=document.getElementById("top-link");window.onscroll=function(){document.body.scrollTop>800||document.documentElement.scrollTop>800?(mybutton.style.visibility="visible",mybutton.style.opacity="1"):(mybutton.style.visibility="hidden",mybutton.style.opacity="0")}</script>
<script>document.getElementById("theme-toggle").addEventListener("click",()=>{document.body.className.includes("dark")?(document.body.classList.remove('dark'),localStorage.setItem("pref-theme",'light')):(document.body.classList.add('dark'),localStorage.setItem("pref-theme",'dark'))})</script>
<script>document.querySelectorAll('pre > code').forEach(b=>{const c=b.parentNode.parentNode,a=document.createElement('button');a.classList.add('copy-code'),a.innerText='copy';function d(){a.innerText='copied!',setTimeout(()=>{a.innerText='copy'},2e3)}a.addEventListener('click',e=>{if('clipboard'in navigator){navigator.clipboard.writeText(b.textContent),d();return}const a=document.createRange();a.selectNodeContents(b);const c=window.getSelection();c.removeAllRanges(),c.addRange(a);try{document.execCommand('copy'),d()}catch(a){}c.removeRange(a)}),c.classList.contains("highlight")?c.appendChild(a):c.parentNode.firstChild==c||(b.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName=="TABLE"?b.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(a):b.parentNode.appendChild(a))})</script>
</body>
</html>